package model


type CanRecords struct {
    Id              int `PK` //如果表的主键不是id，那么需要加上pk注释，显式的说这个字段是主键
    Account_id      int
    Eating_calory    float64
    Activity_calory  float64
    Record_on        string
}



func (record *CanRecords) Left() float64 {
    return record.Eating_calory - record.Activity_calory 
}